﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace 立式传动转台控制系统.Controll.Style
{
    /// <summary>
    /// AxisDisplay.xaml 的交互逻辑
    /// </summary>
    public partial class AxisDisplay : UserControl
    {
        public AxisDisplay()
        {
            InitializeComponent();
        }





        public string Position
        {
            get { return (string)GetValue(PositionProperty); }
            set { SetValue(PositionProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Position.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty PositionProperty =
            DependencyProperty.Register("Position", typeof(string), typeof(AxisDisplay), new PropertyMetadata("0.000"));



        public string PositionOffset
        {
            get { return (string)GetValue(PositionOffsetProperty); }
            set { SetValue(PositionOffsetProperty, value); }
        }

        // Using a DependencyProperty as the backing store for PositionOffset.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty PositionOffsetProperty =
            DependencyProperty.Register("PositionOffset", typeof(string), typeof(AxisDisplay), new PropertyMetadata("0.000"));





        public string Acceleration
        {
            get { return (string)GetValue(AccelerationProperty); }
            set { SetValue(AccelerationProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Acceleration.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty AccelerationProperty =
            DependencyProperty.Register("Acceleration", typeof(string), typeof(AxisDisplay), new PropertyMetadata("10.000"));




        public string Speed
        {
            get { return (string)GetValue(SpeedProperty); }
            set { SetValue(SpeedProperty, value); }
        }

        // Using a DependencyProperty as the backing store for Speed.  This enables animation, styling, binding, etc...
        public static readonly DependencyProperty SpeedProperty =
            DependencyProperty.Register("Speed", typeof(string), typeof(AxisDisplay), new PropertyMetadata("1.000"));


    }
}
